package com.jeebey.mybatis.bean;

import java.io.Serializable;

import org.joda.time.DateTime;

import com.jeebey.mybatis.annotation.Column;
import com.jeebey.mybatis.annotation.Id;
import com.jeebey.mybatis.annotation.Table;
import com.jeebey.mybatis.enhance.BString;

@Table(name = "t_user")
@SuppressWarnings("serial")
public class User implements Serializable {
	@Id
	private Integer id;
	@Column(name = "cname")
	private String name;
	private BString bname;
	private DateTime ctime;

	public User() {

	}

	public User(Integer id) {
		this.id = id;
	}

	public User(Integer id, String name) {
		this.id = id;
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return this.id + " " + this.name;

	}

	public DateTime getCtime() {
		return ctime;
	}

	public void setCtime(DateTime ctime) {
		this.ctime = ctime;
	}

	public BString getBname() {
		return bname;
	}

	public void setBname(BString bname) {
		this.bname = bname;
	}

}
